package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AllocationOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AllocationOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdrIdIsNull() {
            addCriterion("odr_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrIdIsNotNull() {
            addCriterion("odr_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrIdEqualTo(Integer value) {
            addCriterion("odr_id =", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotEqualTo(Integer value) {
            addCriterion("odr_id <>", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThan(Integer value) {
            addCriterion("odr_id >", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_id >=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThan(Integer value) {
            addCriterion("odr_id <", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_id <=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdIn(List<Integer> values) {
            addCriterion("odr_id in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotIn(List<Integer> values) {
            addCriterion("odr_id not in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_id between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_id not between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNull() {
            addCriterion("odr_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNotNull() {
            addCriterion("odr_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeEqualTo(Integer value) {
            addCriterion("odr_type =", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotEqualTo(Integer value) {
            addCriterion("odr_type <>", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThan(Integer value) {
            addCriterion("odr_type >", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_type >=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThan(Integer value) {
            addCriterion("odr_type <", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_type <=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIn(List<Integer> values) {
            addCriterion("odr_type in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotIn(List<Integer> values) {
            addCriterion("odr_type not in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_type between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_type not between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNull() {
            addCriterion("odr_code is null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNotNull() {
            addCriterion("odr_code is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeEqualTo(String value) {
            addCriterion("odr_code =", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotEqualTo(String value) {
            addCriterion("odr_code <>", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThan(String value) {
            addCriterion("odr_code >", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThanOrEqualTo(String value) {
            addCriterion("odr_code >=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThan(String value) {
            addCriterion("odr_code <", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThanOrEqualTo(String value) {
            addCriterion("odr_code <=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLike(String value) {
            addCriterion("odr_code like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotLike(String value) {
            addCriterion("odr_code not like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIn(List<String> values) {
            addCriterion("odr_code in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotIn(List<String> values) {
            addCriterion("odr_code not in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeBetween(String value1, String value2) {
            addCriterion("odr_code between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotBetween(String value1, String value2) {
            addCriterion("odr_code not between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdIsNull() {
            addCriterion("odr_in_whi_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdIsNotNull() {
            addCriterion("odr_in_whi_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdEqualTo(Integer value) {
            addCriterion("odr_in_whi_id =", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdNotEqualTo(Integer value) {
            addCriterion("odr_in_whi_id <>", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdGreaterThan(Integer value) {
            addCriterion("odr_in_whi_id >", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_in_whi_id >=", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdLessThan(Integer value) {
            addCriterion("odr_in_whi_id <", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_in_whi_id <=", value, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdIn(List<Integer> values) {
            addCriterion("odr_in_whi_id in", values, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdNotIn(List<Integer> values) {
            addCriterion("odr_in_whi_id not in", values, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_in_whi_id between", value1, value2, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrInWhiIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_in_whi_id not between", value1, value2, "odrInWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdIsNull() {
            addCriterion("odr_out_whi_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdIsNotNull() {
            addCriterion("odr_out_whi_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdEqualTo(Integer value) {
            addCriterion("odr_out_whi_id =", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdNotEqualTo(Integer value) {
            addCriterion("odr_out_whi_id <>", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdGreaterThan(Integer value) {
            addCriterion("odr_out_whi_id >", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_out_whi_id >=", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdLessThan(Integer value) {
            addCriterion("odr_out_whi_id <", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_out_whi_id <=", value, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdIn(List<Integer> values) {
            addCriterion("odr_out_whi_id in", values, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdNotIn(List<Integer> values) {
            addCriterion("odr_out_whi_id not in", values, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_whi_id between", value1, value2, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrOutWhiIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_whi_id not between", value1, value2, "odrOutWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIsNull() {
            addCriterion("odr_make_person_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIsNotNull() {
            addCriterion("odr_make_person_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdEqualTo(String value) {
            addCriterion("odr_make_person_id =", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotEqualTo(String value) {
            addCriterion("odr_make_person_id <>", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdGreaterThan(String value) {
            addCriterion("odr_make_person_id >", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdGreaterThanOrEqualTo(String value) {
            addCriterion("odr_make_person_id >=", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdLessThan(String value) {
            addCriterion("odr_make_person_id <", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdLessThanOrEqualTo(String value) {
            addCriterion("odr_make_person_id <=", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdLike(String value) {
            addCriterion("odr_make_person_id like", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotLike(String value) {
            addCriterion("odr_make_person_id not like", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIn(List<String> values) {
            addCriterion("odr_make_person_id in", values, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotIn(List<String> values) {
            addCriterion("odr_make_person_id not in", values, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdBetween(String value1, String value2) {
            addCriterion("odr_make_person_id between", value1, value2, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotBetween(String value1, String value2) {
            addCriterion("odr_make_person_id not between", value1, value2, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNull() {
            addCriterion("odr_make_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNotNull() {
            addCriterion("odr_make_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateEqualTo(Date value) {
            addCriterion("odr_make_date =", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotEqualTo(Date value) {
            addCriterion("odr_make_date <>", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThan(Date value) {
            addCriterion("odr_make_date >", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_make_date >=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThan(Date value) {
            addCriterion("odr_make_date <", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_make_date <=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIn(List<Date> values) {
            addCriterion("odr_make_date in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotIn(List<Date> values) {
            addCriterion("odr_make_date not in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateBetween(Date value1, Date value2) {
            addCriterion("odr_make_date between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_make_date not between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusIsNull() {
            addCriterion("odr_out_status is null");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusIsNotNull() {
            addCriterion("odr_out_status is not null");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusEqualTo(Integer value) {
            addCriterion("odr_out_status =", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusNotEqualTo(Integer value) {
            addCriterion("odr_out_status <>", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusGreaterThan(Integer value) {
            addCriterion("odr_out_status >", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_out_status >=", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusLessThan(Integer value) {
            addCriterion("odr_out_status <", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusLessThanOrEqualTo(Integer value) {
            addCriterion("odr_out_status <=", value, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusIn(List<Integer> values) {
            addCriterion("odr_out_status in", values, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusNotIn(List<Integer> values) {
            addCriterion("odr_out_status not in", values, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_status between", value1, value2, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrOutStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_status not between", value1, value2, "odrOutStatus");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNull() {
            addCriterion("odr_remark is null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNotNull() {
            addCriterion("odr_remark is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkEqualTo(String value) {
            addCriterion("odr_remark =", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotEqualTo(String value) {
            addCriterion("odr_remark <>", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThan(String value) {
            addCriterion("odr_remark >", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("odr_remark >=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThan(String value) {
            addCriterion("odr_remark <", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThanOrEqualTo(String value) {
            addCriterion("odr_remark <=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLike(String value) {
            addCriterion("odr_remark like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotLike(String value) {
            addCriterion("odr_remark not like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIn(List<String> values) {
            addCriterion("odr_remark in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotIn(List<String> values) {
            addCriterion("odr_remark not in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkBetween(String value1, String value2) {
            addCriterion("odr_remark between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotBetween(String value1, String value2) {
            addCriterion("odr_remark not between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIsNull() {
            addCriterion("odr_status is null");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIsNotNull() {
            addCriterion("odr_status is not null");
            return (Criteria) this;
        }

        public Criteria andOdrStatusEqualTo(Integer value) {
            addCriterion("odr_status =", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotEqualTo(Integer value) {
            addCriterion("odr_status <>", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusGreaterThan(Integer value) {
            addCriterion("odr_status >", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_status >=", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusLessThan(Integer value) {
            addCriterion("odr_status <", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusLessThanOrEqualTo(Integer value) {
            addCriterion("odr_status <=", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIn(List<Integer> values) {
            addCriterion("odr_status in", values, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotIn(List<Integer> values) {
            addCriterion("odr_status not in", values, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusBetween(Integer value1, Integer value2) {
            addCriterion("odr_status between", value1, value2, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_status not between", value1, value2, "odrStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}